#ifndef MOSES_UNARYEXPR_H
#define MOSES_UNARYEXPR_H

#include "Expr.h"

namespace moses
{

	class UnaryExpr : public Expr
	{
	public:
		MOSES_ITEM_VISITABLE()
		
						UnaryExpr(Expr *pLeft, int op);
		virtual			~UnaryExpr();
	
		virtual Value	Evaluate(Runtime *pEnv);
		
		Expr*			GetExpr() { return m_pLeft; }
		int				GetOP() { return m_op; }
	private:
		Expr*			m_pLeft;
		int				m_op;
	};
}


#endif
